<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="p" uri="http://172.168.15.15:8085" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<c:set var="base" value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>股权易后台</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<script type="text/javascript" src="${base}/lib/js/jquery_1_11_1.min.js"></script>
<script type="text/javascript">
		function whitefile(){
			location.href="${base}/test/whitefile";
		}
</script>
</head>
<body>
	<table>
		<tr>
			<td>姓名</td>
			<td>姓别</td>
			<td>年龄</td>
		</tr>
		<c:forEach items="${list}" var="user">
			<tr>
				<td>${user.name }</td>
				<td>${user.age }</td>
				<td>${user.sex }</td>
			</tr>
		</c:forEach>
	</table>

<!-- 	<div> -->
<%-- 		<form id="pageform" action="${base}/user/list" method="post"> --%>
<%-- 			<input type="hidden" name="page.currentPage" id="currentPage" value="${entity.page.currentPage }" /> --%>
	<!-- 		<input type="text" id="topage"  /> -->
	<!-- 		<input type="button" onclick="pageChanges('2')" /> -->
<!-- 		</form> -->
<%-- 		<a onclick="pageChanges('${entity.page.currentPage-1 }')">上一页</a> --%>
<%-- 		<a onclick="pageChanges('${entity.page.currentPage+1 }')">下一页</a> --%>
<!-- 	</div> -->
<!-- 	<script type="text/javascript"> -->
<!--  		function pageChanges(currentPage){ -->
<!--  			$("#currentPage").val(currentPage); -->
<!--  			$("#pageform").submit(); -->
<!--  		} -->
<!-- 	</script> -->
	
	<p:page currentPage="${entity.page.currentPage }" pageSize="${entity.page.pageSize }" totalPage="${entity.page.totalPage }" url="${base}/user/list"></p:page>

	<h4 onclick="whitefile()">文件导出</h4>
</body>
</html>

